import myAxios from "../request";
import type {PicturePageQueryRequest, PictureReviewRequest, PictureUploadByBatchRequest} from "./typing";


export const pageQueryPictureRequestByPost = (picturePageQueryRequest: PicturePageQueryRequest) => {
    return myAxios.request({
        method: "POST",
        url: "/picture/page",
        data: picturePageQueryRequest
    })
}

export const reviewPictureRequestByPost = (pictureReviewRequest: PictureReviewRequest) => {
    return myAxios.request({
        method: "POST",
        url: "/picture/review",
        data: pictureReviewRequest
    })
}


export const deletePictureRequestByPost = (id: number) => {
    return myAxios.request({
        method: "POST",
        url: `/picture/delete/${id}`,
    })
}

export const uploadPictureByBatchByPost = (pictureUploadByBatchRequest: PictureUploadByBatchRequest) => {
    return myAxios.request({
        method: "POST",
        url: "/picture/upload/batch",
        data: pictureUploadByBatchRequest
    })
}